package com.traceability.trace.service;

import java.util.List;
import com.traceability.trace.domain.FarmerProducer;

/**
 * 农户Service接口
 * 
 * @author xulin
 * @date 2025-01-09
 */
public interface IFarmerProducerService 
{
    /**
     * 查询农户
     * 
     * @param producerId 农户主键
     * @return 农户
     */
    public FarmerProducer selectFarmerProducerByProducerId(Long producerId);

    /**
     * 查询农户列表
     * 
     * @param farmerProducer 农户
     * @return 农户集合
     */
    public List<FarmerProducer> selectFarmerProducerList(FarmerProducer farmerProducer);

    /**
     * 新增农户
     * 
     * @param farmerProducer 农户
     * @return 结果
     */
    public int insertFarmerProducer(FarmerProducer farmerProducer);

    /**
     * 修改农户
     * 
     * @param farmerProducer 农户
     * @return 结果
     */
    public int updateFarmerProducer(FarmerProducer farmerProducer);

    /**
     * 批量删除农户
     * 
     * @param producerIds 需要删除的农户主键集合
     * @return 结果
     */
    public int deleteFarmerProducerByProducerIds(Long[] producerIds);

    /**
     * 删除农户信息
     * 
     * @param producerId 农户主键
     * @return 结果
     */
    public int deleteFarmerProducerByProducerId(Long producerId);
}
